package com.sdau.soa.service.impl;

import com.sdau.soa.dao.UserDao;
import com.sdau.soa.service.ILogService;
import com.sdau.soa.vo.User;
import org.springframework.beans.factory.annotation.Autowired;

public class LogServiceImpl implements ILogService {

    @Autowired
    private UserDao userDao;

    @Override
    public boolean login(User user) {
       String password = userDao.queryByUserName(user.getUserName());
       if(user.getUserName().equals(password))
       {
           return true;
       }
       else
       {
           return false;
       }
    }
}
